<!-- Seednia home -->
	<?php print_r($message); ?>
	<form class="form-horizontal validating-form" id="FormMbox" name="FormMbox" method="post" action="<?php echo controller_base_path($requestContext); ?>/Mbox/new/form" >
		<input type="hidden" id="sid" name="recipientSid" value="<?php echo $message->recipientSid; ?>" />
		<fieldset>
			<legend>New Message</legend>
			<div class="control-group">
				<label class="control-label" for="recipient">Recipient</label>
				<div class="controls">
					<input type="text" id="recipient" name="recipient" 
						   value="<?php echo Util_Data::getValueOf($message, 'recipientDisplayName'); ?>" />
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="currentLocation">Subject</label>
				<div class="controls">
					<input type="text" id="subject" name="subject" class="span12"
						   value="<?php echo Util_Data::getValueOf($message, 'subject'); ?>" />
				</div>
			</div>
			
			<div class="control-group">
				<label class="control-label" for="goals">Message</label>
				<div class="controls">
					<textarea id="body" name="body" class="span12 required"><?php echo Util_Data::getValueOf($message, 'body'); ?></textarea>
				</div>
			</div>

			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn">Send</button>
				</div>
			</div>

		</fieldset>
	</form>

<script type="text/javascript" src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>
<script type="text/javascript">
// FYI jQuery: multiple $(document).ready() is possible.
$(document).ready(function() {
	$(".validating-form").validate();
	$(".tag").tagit({maxTags:25 });
});
</script>